package factoryPattern.factoryMethod;

public class Test {
    public static void main(String[] args) {
        ReadFactory jpgread = new JpgGetReadFactory();
        Read jRead =jpgread.getRead();
        jRead.read();
        ReadFactory pngread =new PngGetReadFactory();
        Read pRead =pngread.getRead();
        pRead.read();
        ReadFactory gifread =new GifGetReadFactory();
        Read gRead =gifread.getRead();
        gRead.read();
    }
}